package com.chen.common.server;

import com.chen.common.One;
import com.chen.common.model.User;

/**
 * @author chenzy
 * @since 2023/3/9
 **/
@One
public class UserServer {


    public void register(String mobile) {
        var user=createUser(mobile);


        System.out.println("注册成功");

    }

    private User createUser(String mobile){
        return new User().setMobile(mobile)
                .setCode(getNewCode());
    }
    public String getNewCode(){
        /*TODO */
        return "0001";
    }
}
